import Detail from '../views/detail'
import Chart from '../views/chart'
import Collect from '../views/collect'
import Mine from '../views/mine'
import Add from '../views/add'
import Register from '../views/register'
import Login from '../views/login'
import Edit from '../views/edit'
import Score from '../views/score'
import AddCollectData from '../views/addCollectData'
import ModifyCollectData from '../views/modifyCollectData'
import ModifyData from '../views/modifyData'
import ComHeader from '@/components/comHeader'
import ComFooter from '@/components/comFooter'

export default [
  {
    path: '/',
    redirect: '/detail',
  },
  {
    path: '/detail',
    name: 'detail',
    components: {
      header: ComHeader,
      default: Detail,
      footer: ComFooter,
    },
    meta: {
      title: '明细',
    },
  },
  {
    path: '/chart',
    name: 'chart',
    components: {
      header: ComHeader,
      default: Chart,
      footer: ComFooter,
    },
    meta: {
      title: '图表',
    },
  },
  {
    path: '/collect',
    name: 'collect',
    components: {
      header: ComHeader,
      default: Collect,
      footer: ComFooter,
    },
    meta: {
      title: '存钱目标',
    },
  },
  {
    path: '/mine',
    name: 'mine',
    components: {
      header: ComHeader,
      default: Mine,
      footer: ComFooter,
    },
    meta: {
      title: '我的',
    },
  },
  {
    path: '/add',
    name: 'add',
    components: {
      header: ComHeader,
      default: Add,
    },
    meta: {
      title: '添加',
    },
  },
  {
    path: '/register',
    name: 'register',
    components: {
      header: ComHeader,
      default: Register,
    },
    meta: {
      title: '注册',
    },
  },
  {
    path: '/login',
    name: 'login',
    components: {
      header: ComHeader,
      default: Login,
    },
    meta: {
      title: '登录',
    },
  },
  {
    path: '/edit',
    name: 'edit',
    components: {
      header: ComHeader,
      default: Edit,
    },
    meta: {
      title: '编辑',
    },
  },
  {
    path: '/addCollectData',
    name: 'addCollectData',
    components: {
      header: ComHeader,
      default: AddCollectData,
    },
    meta: {
      title: '添加',
    },
  },
  {
    path: '/modifyCollectData',
    name: 'modifyCollectData',
    components: {
      header: ComHeader,
      default: ModifyCollectData,
    },
    meta: {
      title: '修改',
    },
  },
  {
    path: '/modifyData',
    name: 'modifyData',
    components: {
      header: ComHeader,
      default: ModifyData,
    },
    meta: {
      title: '修改',
    },
  },
  {
    path: '/score',
    name: 'score',
    components: {
      header: ComHeader,
      default: Score,
    },
    meta: {
      title: '评分',
    },
  },
]
